package javax.microedition.lcdui;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;

public class Image {
  public String ImageName;
  public int Height = 0;
  public int Width = 0;

  public Image(String Name) {
    ImageName = Name;
  }

  public Image(Image Image) {
    ImageName = Image.ImageName;
  }

  public boolean isMutable() {
    return false;
  }

  public int getHeight() {
    return Height;
  }

  public int getWidth() {
    return Width;
  }

  public Graphics getGraphics() {
    return Graphics.CurrentGraphics;
  }

  public native void CreateImageEvent(byte[] paramArrayOfbyte, int paramInt1, int paramInt2);

  public static Image createImage(byte[] paramArrayOfbyte, int paramInt1, int paramInt2) {
    Image image = new Image("Image1");
    image.CreateImageEvent(paramArrayOfbyte, paramInt1, paramInt2);
    return image;
  }

  public native void CreateImageEvent(int paramInt1, int paramInt2);

  public static Image createImage(int paramInt1, int paramInt2) {
    Image image = new Image("Image2");
    image.CreateImageEvent(paramInt1, paramInt2);
    return image;
  }

  public native void CreateImageEvent(byte[] paramInputStream);

  public static Image createImage(InputStream paramInputStream) throws IOException {
    Image image = new Image("Image3");
    if (paramInputStream instanceof BufferedInputStream) 
    {
      BufferedInputStream buffer=(BufferedInputStream)paramInputStream;
      int len=buffer.available();
      byte[] data=new byte[len];
      buffer.read(data,0,len);
      image.CreateImageEvent(data);
    }else{
      
    }
    
    return image;
  }

  public native void CreateImageEvent(String name);

  public static Image createImage(String paramString) throws IOException {
    Image image = new Image(paramString);
    image.CreateImageEvent(image.ImageName);
    return image;
  }

  public static Image createImage(Image paramImage) {
    Image image = new Image(paramImage);
    image.CreateImageEvent(image.ImageName);
    return image;
  }

  public native void CreateImageEvent(Image paramImage, int paramInt1, int paramInt2, int paramInt3, int paramInt4,
  int paramInt5);
  public static Image createImage(Image paramImage, int paramInt1, int paramInt2, int paramInt3, int paramInt4,
      int paramInt5) {
    Image image = new Image(paramImage);
    image.CreateImageEvent(paramImage,paramInt1,paramInt2,paramInt3,paramInt4,paramInt5);
    return image;
  }

  public native void CreateImageEvent(int[] paramArrayOfint, int paramInt1, int paramInt2, boolean paramBoolean);
  public static Image createRGBImage(int[] paramArrayOfint, int paramInt1, int paramInt2, boolean paramBoolean) {
    Image image = new Image("RGBImage");
    image.CreateImageEvent(paramArrayOfint,paramInt1,paramInt2,paramBoolean);
    return image;
  }

  public native void GetRGB(int[] paramArrayOfint, int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5,
  int paramInt6);
  public void getRGB(int[] paramArrayOfint, int paramInt1, int paramInt2, int paramInt3, int paramInt4, int paramInt5,
      int paramInt6) {
        GetRGB(paramArrayOfint,paramInt1,paramInt2,paramInt3,paramInt4,paramInt5,paramInt6);
  }
}

/*
 * Location:
 * C:\Java\rt\javax\microedition\midp_2.1.jar!\javax\microedition\lcdui\Image.
 * class
 * Java compiler version: 3 (47.0)
 * JD-Core Version: 1.1.3
 */